const API = {
    oauth: {
        login: '/SKY-OAUTH/oauth/token',
        logout: '/SKY-OAUTH/oauth/logout'
    },
    system: {
        dept: {
            list: '/SKY-SYSTEM/system/dept/list',
            get: '/SKY-SYSTEM/system/dept/get',
            checkDeptName: '/SKY-SYSTEM/system/dept/check/deptName',
            checkParentId: '/SKY-SYSTEM/system/dept/check/parentId',
            add: '/SKY-SYSTEM/system/dept/add',
            edit: '/SKY-SYSTEM/system/dept/update',
            editEnable: '/SKY-SYSTEM/system/dept/update/enabled',
            delete: '/SKY-SYSTEM/system/dept/delete',
        },
        user: {
            userMe: '/SKY-SYSTEM/system/user/me',
            list: '/SKY-SYSTEM/system/user/list',
            check: '/SKY-SYSTEM/system/user/check/code',
            delete: '/SKY-SYSTEM/system/user/delete',
            add: '/SKY-SYSTEM/system/user/add',
            edit: '/SKY-SYSTEM/system/user/update',
            ofRoles: '/SKY-SYSTEM/system/user/ofRoles',
            toRoles: '/SKY-SYSTEM/system/user/toRoles',
        },
        role: {
            list: '/SKY-SYSTEM/system/role/list',
            check: '/SKY-SYSTEM/system/role/check/code',
            add: '/SKY-SYSTEM/system/role/add',
            edit: '/SKY-SYSTEM/system/role/update',
            delete: '/SKY-SYSTEM/system/role/delete',
            ofMenus: '/SKY-SYSTEM/system/role/ofMenus',
            toMenus: '/SKY-SYSTEM/system/role/toMenus',
            ofPermsByMenuId: '/SKY-SYSTEM/system/role/ofPermsByMenuId',
            toPermsByMenuId: '/SKY-SYSTEM/system/role/toPermsByMenuId',
        },
        menu: {
            menuMe: '/SKY-SYSTEM/system/menu/me',
            checkCode: '/SKY-SYSTEM/system/menu/check/code',
            checkParentId: '/SKY-SYSTEM/system/menu/check/parentId',
            list: '/SKY-SYSTEM/system/menu/list',
            add: '/SKY-SYSTEM/system/menu/add',
            edit: '/SKY-SYSTEM/system/menu/update',
            editEnable: '/SKY-SYSTEM/system/menu/update/enabled',
            delete: '/SKY-SYSTEM/system/menu/delete',
        },
        perm: {
            list: '/SKY-SYSTEM/system/perm/list',
            check: '/SKY-SYSTEM/system/perm/check/code',
            add: '/SKY-SYSTEM/system/menu/add',
            edit: '/SKY-SYSTEM/system/menu/update',
            delete: '/SKY-SYSTEM/system/menu/delete',
        },
        dic: {
            list: '/SKY-SYSTEM/system/dic/p/list',
            add: '/SKY-SYSTEM/system/dic/add',
            edit: '/SKY-SYSTEM/system/dic/update',
            delete: '/SKY-SYSTEM/system/dic/delete',
        },
        basic: {
            dept: '/SKY-SYSTEM/system/basic/dept',
            role: '/SKY-SYSTEM/system/basic/role',
            roleByType: '/SKY-SYSTEM/system/basic/roleByType',
            menu: '/SKY-SYSTEM/system/basic/menu',
            permsByMenuId: '/SKY-SYSTEM/system/basic/permsByMenuId',
            pDic: '/SKY-SYSTEM/system/basic/pDic',
            childDicByCode: '/SKY-SYSTEM/system/basic/childDicByCode',
        }
    }
}

export default API;
